package com.atguigu;


public class test {

    public static void main(String[] args) {
        Long startTime = System.currentTimeMillis();
        System.out.println(startTime);
        for (int i = 0; i < 1000000; i++) {
            System.out.println(i);
        }
        Long endTime = System.currentTimeMillis();
        System.out.println(endTime-startTime+"毫秒");

    }
}
